<!-- 样式管理 -->
<template>
  <div class="container">
    <el-table
    :data="tableData"
    border
    style="width: 100%">
    <el-table-column prop="date" label="记录时间"></el-table-column>
    <el-table-column prop="type" label="类型"></el-table-column>
    <el-table-column prop="bedName" label="床位名称"></el-table-column>
    <el-table-column prop="HWID" label="硬件ID"></el-table-column>
    <el-table-column prop="clientSideSend" label="客户端发送"></el-table-column>
    <el-table-column prop="serverSideSend" label="服务端发送"></el-table-column>
  </el-table>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {
      tableData: [
        {
          date:'',
          type:'',
          bedName:'',
          HWID:'',
          clientSideSend:'',
          serverSideSend:'',
        },
        {
          date:'',
          type:'',
          bedName:'',
          HWID:'',
          clientSideSend:'',
          serverSideSend:'',
        },
       
      ],
     
    };
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row);
      console.log(this.tableData);
    },
    handleCurrentChange(row, event, column) {
      console.log(row, event, column);
    },
  }, // 如果页面有keep-alive缓存功能，这个函数会触发
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  updated() {}, // 生命周期 - 更新之后
  beforeDestroy() {}, // 生命周期 - 销毁之前
  destroyed() {}, // 生命周期 - 销毁完成
  activated() {},
};
</script>
<style lang='scss' scoped>
.container {
  padding: 20px;
  .tb-edit .el-input {
    display: none;
  }
  .tb-edit .current-row .el-input {
    display: block;
  }
  .tb-edit .current-row .el-input + span {
    display: none;
  }
}
</style>
